<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TTimeClock类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_t_time_clock-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TTimeClock类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<div class="dynheader">
类 TTimeClock 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t_time_clock.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aefde55ea5ce7a9012e82360104f4def4"><td class="memItemLeft" align="right" valign="top"><a id="aefde55ea5ce7a9012e82360104f4def4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TTimeClock</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:aefde55ea5ce7a9012e82360104f4def4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1491578978afbfd137299e114f876b79"><td class="memItemLeft" align="right" valign="top"><a id="a1491578978afbfd137299e114f876b79"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TTimeClock</b> (const time_clock_t *nativeObj)</td></tr>
<tr class="separator:a1491578978afbfd137299e114f876b79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88222692c9e88e4117895c8d164eed9c"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#a88222692c9e88e4117895c8d164eed9c">SetHour</a> (int32_t hour)</td></tr>
<tr class="separator:a88222692c9e88e4117895c8d164eed9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d90f2549247388a2524c9e1dbabb5e4"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#a5d90f2549247388a2524c9e1dbabb5e4">SetMinute</a> (int32_t minute)</td></tr>
<tr class="separator:a5d90f2549247388a2524c9e1dbabb5e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2fc26de4441ae8bb1bfbafeb9231b7d3"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#a2fc26de4441ae8bb1bfbafeb9231b7d3">SetSecond</a> (int32_t second)</td></tr>
<tr class="separator:a2fc26de4441ae8bb1bfbafeb9231b7d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2fa6a673176e4ee785c3815b38701e99"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#a2fa6a673176e4ee785c3815b38701e99">SetHourImage</a> (const char *hour)</td></tr>
<tr class="separator:a2fa6a673176e4ee785c3815b38701e99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25b43c193432b981907a214c07e08264"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#a25b43c193432b981907a214c07e08264">SetMinuteImage</a> (const char *minute_image)</td></tr>
<tr class="separator:a25b43c193432b981907a214c07e08264"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a841e7dfe3623050e8973ab673c41b1d2"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#a841e7dfe3623050e8973ab673c41b1d2">SetSecondImage</a> (const char *second_image)</td></tr>
<tr class="separator:a841e7dfe3623050e8973ab673c41b1d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0755f852edcfdf1db1f757117e8ef786"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#a0755f852edcfdf1db1f757117e8ef786">SetBgImage</a> (const char *bg_image)</td></tr>
<tr class="separator:a0755f852edcfdf1db1f757117e8ef786"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb428d02ad987db281ac9509a2180f1d"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#aeb428d02ad987db281ac9509a2180f1d">SetImage</a> (const char *image)</td></tr>
<tr class="separator:aeb428d02ad987db281ac9509a2180f1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebfc44d71510bca8fab180da2ff06d2a"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#aebfc44d71510bca8fab180da2ff06d2a">SetHourAnchor</a> (const char *anchor_x, const char *anchor_y)</td></tr>
<tr class="separator:aebfc44d71510bca8fab180da2ff06d2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d7c005d401e07aac27f47a12ba76efc"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#a9d7c005d401e07aac27f47a12ba76efc">SetMinuteAnchor</a> (const char *anchor_x, const char *anchor_y)</td></tr>
<tr class="separator:a9d7c005d401e07aac27f47a12ba76efc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24a8b9a29ab63682ad8543f4d05bf811"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#a24a8b9a29ab63682ad8543f4d05bf811">SetSecondAnchor</a> (const char *anchor_x, const char *anchor_y)</td></tr>
<tr class="separator:a24a8b9a29ab63682ad8543f4d05bf811"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8764d1d87915d0d1a329bdb1d6349d95"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#a8764d1d87915d0d1a329bdb1d6349d95">GetHour</a> () const</td></tr>
<tr class="separator:a8764d1d87915d0d1a329bdb1d6349d95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad71ccde332098d338fe9c16abd70a6ed"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#ad71ccde332098d338fe9c16abd70a6ed">GetMinute</a> () const</td></tr>
<tr class="separator:ad71ccde332098d338fe9c16abd70a6ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8aae8a8e09e79e54348cfb00fb334c09"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#a8aae8a8e09e79e54348cfb00fb334c09">GetSecond</a> () const</td></tr>
<tr class="separator:a8aae8a8e09e79e54348cfb00fb334c09"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab13452e8408e257a9a89155eba5087b2"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#ab13452e8408e257a9a89155eba5087b2">GetImage</a> () const</td></tr>
<tr class="separator:ab13452e8408e257a9a89155eba5087b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8944039cfd466dc4fb9eedfaa1b69254"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#a8944039cfd466dc4fb9eedfaa1b69254">GetBgImage</a> () const</td></tr>
<tr class="separator:a8944039cfd466dc4fb9eedfaa1b69254"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac44f559890b260e52157a615c9db7385"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#ac44f559890b260e52157a615c9db7385">GetHourImage</a> () const</td></tr>
<tr class="separator:ac44f559890b260e52157a615c9db7385"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeced04434b19857ca57d87e19b41a5f9"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#aeced04434b19857ca57d87e19b41a5f9">GetMinuteImage</a> () const</td></tr>
<tr class="separator:aeced04434b19857ca57d87e19b41a5f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a1997c9d022af70b5bfa685942920d5"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#a0a1997c9d022af70b5bfa685942920d5">GetSecondImage</a> () const</td></tr>
<tr class="separator:a0a1997c9d022af70b5bfa685942920d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5391b240eba1cc9573259dae2258451"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#ad5391b240eba1cc9573259dae2258451">GetHourAnchorX</a> () const</td></tr>
<tr class="separator:ad5391b240eba1cc9573259dae2258451"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a051dd1e34cb96a11482ed253786d5aa2"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#a051dd1e34cb96a11482ed253786d5aa2">GetHourAnchorY</a> () const</td></tr>
<tr class="separator:a051dd1e34cb96a11482ed253786d5aa2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc275f042d24a85998f9b5004453cf85"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#abc275f042d24a85998f9b5004453cf85">GetMinuteAnchorX</a> () const</td></tr>
<tr class="separator:abc275f042d24a85998f9b5004453cf85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a914440313bad723cf51eaa01e9e53e27"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#a914440313bad723cf51eaa01e9e53e27">GetMinuteAnchorY</a> () const</td></tr>
<tr class="separator:a914440313bad723cf51eaa01e9e53e27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fe041728a7f7e83aaf1c9e97775141e"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#a9fe041728a7f7e83aaf1c9e97775141e">GetSecondAnchorX</a> () const</td></tr>
<tr class="separator:a9fe041728a7f7e83aaf1c9e97775141e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac95bd9e6a80e8924ba0462b5de5d50b0"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#ac95bd9e6a80e8924ba0462b5de5d50b0">GetSecondAnchorY</a> () const</td></tr>
<tr class="separator:ac95bd9e6a80e8924ba0462b5de5d50b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a342e6c38e7f2cadd04d21fa390a8ae38"><td class="memItemLeft" align="right" valign="top"><a id="a342e6c38e7f2cadd04d21fa390a8ae38"></a>
static <a class="el" href="class_t_time_clock.html">TTimeClock</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a342e6c38e7f2cadd04d21fa390a8ae38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeef9c771bf736adb0410e0c0bca85926"><td class="memItemLeft" align="right" valign="top"><a id="aeef9c771bf736adb0410e0c0bca85926"></a>
static <a class="el" href="class_t_time_clock.html">TTimeClock</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const widget_t *nativeObj)</td></tr>
<tr class="separator:aeef9c771bf736adb0410e0c0bca85926"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acec39e23ccfd94940b1d0e3562c7f829"><td class="memItemLeft" align="right" valign="top"><a id="acec39e23ccfd94940b1d0e3562c7f829"></a>
static <a class="el" href="class_t_time_clock.html">TTimeClock</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (TWidget &amp;obj)</td></tr>
<tr class="separator:acec39e23ccfd94940b1d0e3562c7f829"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb37044fa27d4fed46bbab42f658a383"><td class="memItemLeft" align="right" valign="top"><a id="adb37044fa27d4fed46bbab42f658a383"></a>
static <a class="el" href="class_t_time_clock.html">TTimeClock</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const TWidget &amp;obj)</td></tr>
<tr class="separator:adb37044fa27d4fed46bbab42f658a383"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a531459959f190b78c17ea36157364c3b"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_time_clock.html#a531459959f190b78c17ea36157364c3b">Create</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:a531459959f190b78c17ea36157364c3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>模拟时钟控件。</p>
<p>time_clock_t是widget\_t的子类控件，widget_t的函数均适用于time_clock_t控件。</p>
<p>在xml中使用"time\_clock"标签创建模拟时钟控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">time_clock</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;c&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;m&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;300&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;300&quot;</span> <span class="keyword">bg_image</span>=<span class="stringliteral">&quot;clock_bg&quot;</span> <span class="keyword">image</span>=<span class="stringliteral">&quot;clock&quot;</span></div>
<div class="line">*<span class="keyword">hour_image</span>=<span class="stringliteral">&quot;clock_hour&quot;</span> <span class="keyword">minute_image</span>=<span class="stringliteral">&quot;clock_minute&quot;</span> <span class="keyword">second_image</span>=<span class="stringliteral">&quot;clock_second&quot;</span>/&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考：[time_clock.xml]( </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/time_clock.xml">https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/time_clock.xml</a>)</p>
<p>在c代码中使用函数time_clock_create创建模拟时钟控件。如：</p>
<blockquote class="doxtable">
<p>完整示例请参考：[time_clock demo]( </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/time_clock.c">https://github.com/zlgopen/awtk-c-demos/blob/master/demos/time_clock.c</a>)</p>
<p>time_clock一般不需要设置style。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a531459959f190b78c17ea36157364c3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a531459959f190b78c17ea36157364c3b">&#9670;&nbsp;</a></span>Create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TTimeClock::Create </td>
          <td>(</td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建time_clock对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a8944039cfd466dc4fb9eedfaa1b69254"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8944039cfd466dc4fb9eedfaa1b69254">&#9670;&nbsp;</a></span>GetBgImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TTimeClock::GetBgImage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>背景图片。 </p>

</div>
</div>
<a id="a8764d1d87915d0d1a329bdb1d6349d95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8764d1d87915d0d1a329bdb1d6349d95">&#9670;&nbsp;</a></span>GetHour()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t TTimeClock::GetHour </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>小时。 </p>

</div>
</div>
<a id="ad5391b240eba1cc9573259dae2258451"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5391b240eba1cc9573259dae2258451">&#9670;&nbsp;</a></span>GetHourAnchorX()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TTimeClock::GetHourAnchorX </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>时针图片旋转锚点x坐标。(后面加上px为像素点，不加px为相对百分比坐标0.0f到1.0f) </p>

</div>
</div>
<a id="a051dd1e34cb96a11482ed253786d5aa2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a051dd1e34cb96a11482ed253786d5aa2">&#9670;&nbsp;</a></span>GetHourAnchorY()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TTimeClock::GetHourAnchorY </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>时针图片旋转锚点y坐标。(后面加上px为像素点，不加px为相对百分比坐标0.0f到1.0f) </p>

</div>
</div>
<a id="ac44f559890b260e52157a615c9db7385"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac44f559890b260e52157a615c9db7385">&#9670;&nbsp;</a></span>GetHourImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TTimeClock::GetHourImage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>时针图片。 </p>

</div>
</div>
<a id="ab13452e8408e257a9a89155eba5087b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab13452e8408e257a9a89155eba5087b2">&#9670;&nbsp;</a></span>GetImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TTimeClock::GetImage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>中心图片。 </p>

</div>
</div>
<a id="ad71ccde332098d338fe9c16abd70a6ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad71ccde332098d338fe9c16abd70a6ed">&#9670;&nbsp;</a></span>GetMinute()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t TTimeClock::GetMinute </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>分钟。 </p>

</div>
</div>
<a id="abc275f042d24a85998f9b5004453cf85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abc275f042d24a85998f9b5004453cf85">&#9670;&nbsp;</a></span>GetMinuteAnchorX()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TTimeClock::GetMinuteAnchorX </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>分针图片旋转锚点x坐标。(后面加上px为像素点，不加px为相对百分比坐标0.0f到1.0f) </p>

</div>
</div>
<a id="a914440313bad723cf51eaa01e9e53e27"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a914440313bad723cf51eaa01e9e53e27">&#9670;&nbsp;</a></span>GetMinuteAnchorY()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TTimeClock::GetMinuteAnchorY </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>分针图片旋转锚点y坐标。(后面加上px为像素点，不加px为相对百分比坐标0.0f到1.0f) </p>

</div>
</div>
<a id="aeced04434b19857ca57d87e19b41a5f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeced04434b19857ca57d87e19b41a5f9">&#9670;&nbsp;</a></span>GetMinuteImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TTimeClock::GetMinuteImage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>分针图片。 </p>

</div>
</div>
<a id="a8aae8a8e09e79e54348cfb00fb334c09"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8aae8a8e09e79e54348cfb00fb334c09">&#9670;&nbsp;</a></span>GetSecond()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t TTimeClock::GetSecond </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>秒。 </p>

</div>
</div>
<a id="a9fe041728a7f7e83aaf1c9e97775141e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9fe041728a7f7e83aaf1c9e97775141e">&#9670;&nbsp;</a></span>GetSecondAnchorX()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TTimeClock::GetSecondAnchorX </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>秒针图片旋转锚点x坐标。(后面加上px为像素点，不加px为相对百分比坐标0.0f到1.0f) </p>

</div>
</div>
<a id="ac95bd9e6a80e8924ba0462b5de5d50b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac95bd9e6a80e8924ba0462b5de5d50b0">&#9670;&nbsp;</a></span>GetSecondAnchorY()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TTimeClock::GetSecondAnchorY </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>秒针图片旋转锚点y坐标。(后面加上px为像素点，不加px为相对百分比坐标0.0f到1.0f) </p>

</div>
</div>
<a id="a0a1997c9d022af70b5bfa685942920d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a1997c9d022af70b5bfa685942920d5">&#9670;&nbsp;</a></span>GetSecondImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TTimeClock::GetSecondImage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>秒针图片。 </p>

</div>
</div>
<a id="a0755f852edcfdf1db1f757117e8ef786"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0755f852edcfdf1db1f757117e8ef786">&#9670;&nbsp;</a></span>SetBgImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTimeClock::SetBgImage </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>bg_image</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置背景图片。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">bg_image</td><td>背景图片。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a88222692c9e88e4117895c8d164eed9c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88222692c9e88e4117895c8d164eed9c">&#9670;&nbsp;</a></span>SetHour()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTimeClock::SetHour </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>hour</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置小时的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">hour</td><td>小时的值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aebfc44d71510bca8fab180da2ff06d2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aebfc44d71510bca8fab180da2ff06d2a">&#9670;&nbsp;</a></span>SetHourAnchor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTimeClock::SetHourAnchor </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>anchor_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>anchor_y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置小时指针的旋转锚点。 </p><blockquote class="doxtable">
<p>后面加上px为像素点，不加px为相对百分比坐标0.0f到1.0f </p>
</blockquote>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">anchor_x</td><td>指针的锚点坐标x。 </td></tr>
    <tr><td class="paramname">anchor_y</td><td>指针的锚点坐标y。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a2fa6a673176e4ee785c3815b38701e99"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2fa6a673176e4ee785c3815b38701e99">&#9670;&nbsp;</a></span>SetHourImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTimeClock::SetHourImage </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>hour</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置小时的图片。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">hour</td><td>小时的图片。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aeb428d02ad987db281ac9509a2180f1d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb428d02ad987db281ac9509a2180f1d">&#9670;&nbsp;</a></span>SetImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTimeClock::SetImage </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>image</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置中心图片。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">image</td><td>图片。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a5d90f2549247388a2524c9e1dbabb5e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d90f2549247388a2524c9e1dbabb5e4">&#9670;&nbsp;</a></span>SetMinute()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTimeClock::SetMinute </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>minute</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置分钟的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">minute</td><td>分钟的值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a9d7c005d401e07aac27f47a12ba76efc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d7c005d401e07aac27f47a12ba76efc">&#9670;&nbsp;</a></span>SetMinuteAnchor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTimeClock::SetMinuteAnchor </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>anchor_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>anchor_y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置分钟指针的旋转锚点。 </p><blockquote class="doxtable">
<p>后面加上px为像素点，不加px为相对百分比坐标0.0f到1.0f </p>
</blockquote>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">anchor_x</td><td>指针的锚点坐标x。 </td></tr>
    <tr><td class="paramname">anchor_y</td><td>指针的锚点坐标y。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a25b43c193432b981907a214c07e08264"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25b43c193432b981907a214c07e08264">&#9670;&nbsp;</a></span>SetMinuteImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTimeClock::SetMinuteImage </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>minute_image</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置分钟的图片。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">minute_image</td><td>分钟的图片。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a2fc26de4441ae8bb1bfbafeb9231b7d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2fc26de4441ae8bb1bfbafeb9231b7d3">&#9670;&nbsp;</a></span>SetSecond()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTimeClock::SetSecond </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>second</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置秒的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">second</td><td>秒的值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a24a8b9a29ab63682ad8543f4d05bf811"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24a8b9a29ab63682ad8543f4d05bf811">&#9670;&nbsp;</a></span>SetSecondAnchor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTimeClock::SetSecondAnchor </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>anchor_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>anchor_y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置秒钟指针的旋转锚点。 </p><blockquote class="doxtable">
<p>后面加上px为像素点，不加px为相对百分比坐标0.0f到1.0f </p>
</blockquote>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">anchor_x</td><td>指针的锚点坐标x。 </td></tr>
    <tr><td class="paramname">anchor_y</td><td>指针的锚点坐标y。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a841e7dfe3623050e8973ab673c41b1d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a841e7dfe3623050e8973ab673c41b1d2">&#9670;&nbsp;</a></span>SetSecondImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTimeClock::SetSecondImage </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>second_image</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置秒的图片。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">second_image</td><td>秒的图片。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
